import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';


@Component({
  selector: 'app-my-input',
  templateUrl: './my-input.component.html',
  styleUrls: ['./my-input.component.less']
})
export class MyInputComponent implements OnInit {

  @Input() value: string;


  @Output() valueChange: EventEmitter<string> = new EventEmitter<string>();

  constructor() { }

  ngOnInit() {
  }

  onInputHandle(ev) {
    this.valueChange.emit(ev.target.value)
  }

}
